- title 'My Matched Words'
.list-header
  %h1.list-title My Matched Words

.table-responsive
  %table.table.table-hover.list-table.result-list
    %thead
      %tr
        %th Number
        %th Matched Words
        %th{width: 250} Matched At
        %th{width: 100} Actions
    %tbody
      - if @results.present?
        - @results.each do |result|
          %tr{id: "result_#{result.id}"}
            %td= result.number
            %td= result.human_matched_words
            %td= result.created_at
            %td= link_to 'Destroy', result, method: :delete, data: { remote: true, confirm: 'Are you sure?' }, class: 'btn btn-sm btn-danger'
      - else
        %tr
          %td{colspan: '4'} Not matched string yet!
